#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(int argc,char* argv[])
{
    printf("查看环境变量：PATH:%s\n",getenv("PATH"));
   if(argc<2)
   {
       printf("can not execute\n");
       exit(1);
   }
   else if(strcmp("-a",argv[1])==0)
   {
       printf("hello a!\n");
   }
   else if(strcmp("-b",argv[1])==0)
   {
       printf("hello b!\n");
   }
   else{
       printf("defult!\n");
   }

    return 0;
}
